package com.nsoft.server.master.beans;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class ReportMasterPK implements Serializable {
	@Column(name="Rep_num_Id")
	private int repNumId;

	@Column(name="Rep_char_rptid")
	private String repCharRptid;

	@Column(name="Rep_char_description")
	private String repCharDescription;

	private static final long serialVersionUID = 1L;

	public ReportMasterPK() {
		super();
	}

	public int getRepNumId() {
		return this.repNumId;
	}

	public void setRepNumId(int repNumId) {
		this.repNumId = repNumId;
	}

	public String getRepCharRptid() {
		return this.repCharRptid;
	}

	public void setRepCharRptid(String repCharRptid) {
		this.repCharRptid = repCharRptid;
	}

	public String getRepCharDescription() {
		return this.repCharDescription;
	}

	public void setRepCharDescription(String repCharDescription) {
		this.repCharDescription = repCharDescription;
	}

	@Override
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		}
		if ( ! (o instanceof ReportMasterPK)) {
			return false;
		}
		ReportMasterPK other = (ReportMasterPK) o;
		return (this.repNumId == other.repNumId)
			&& this.repCharRptid.equals(other.repCharRptid)
			&& this.repCharDescription.equals(other.repCharDescription);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.repNumId;
		hash = hash * prime + this.repCharRptid.hashCode();
		hash = hash * prime + this.repCharDescription.hashCode();
		return hash;
	}

}
